import java.io.*;
public class chess{
	public static void main(String args[]) throws IOException{
		InputStreamReader in=new InputStreamReader(System.in);
		BufferedReader bin=new BufferedReader(in);
		int i,j;
		 for(i=0;i<8;i++) {
		 	for(j=0;j<8;j++)
		 		if((i+j)%2==0)
		 			System.out.print("\1\1");
		 				else
		 					System.out.print(" ");
		 						System.out.println("");
        								}


		}
}